package com.stlm2.dems.entity;

/**
 * Created by apple on 2017.12.20.
 */
public enum DateSourceType {

    masterDataSource(1) {
        public String toString() {
            return "masterDataSource";
        }
    },
    yongChengDataSource(2) {
        public String toString() {
            return "yongChengDataSource";
        }
    },
    xtdDataSource(3) {
        public String toString() {
            return "xtdDataSource";
        }
    };

    private final int val;

    DateSourceType(int n) {
        val = n;
    }

    public int getIntValue() {
        return val;
    }

    public static DateSourceType getByIntValue(int n) {
        switch (n) {
            case 1:
                return masterDataSource;
            case 2:
                return yongChengDataSource;

            case 3:
                return xtdDataSource;

            default:
                return null;
        }
    }
}
